package com.facefun.service;

import java.util.List;

public interface IService<T> {

	int save(T entity);
	
	int updateNotNull(T entity);
	
	int deleteByKey(Object key);
	
	List<T> selectAll();
	
	T selectByPrimaryKey(Object key);

	T selectOne(T entity);
}
